package com.zhangbaiyan.test01;

/**
 * @author zhangbaiyan
 * @date 2024-09-22 21:39
 * @description: 多线程的第一种
 * @version: 1.0
 */
public class MyThread1 extends Thread {
    //书写要执行的代码
    @Override
    public void run() {
        //书写线程要执行代码
        for (int i = 0; i < 100; i++) System.out.println(getName()+i);
    }
}
